package handler

import (
	"context"
	"micro/getid-service/service"
	"micro/proto/getid"
)

type handler struct {
	//
}

func (h handler) GetIdFunc(ctx context.Context, request *getid.GetIdRequest, response *getid.GetIdResponse) error {
	response.ID = service.GetIdFunc()
	return nil
}

func Handler() getid.GetIdHandler {
	return handler{}
}
